|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectagents.anac.y2010.AgentSmith.OpponentModel
public class OpponentModel
The OpponentModel. This model manages the opponents preferences, stores the bids and based on the number of times the opponent proposes a specific option in a bid, that option becomes more important and our agent uses this information to construct its own bids.
| Constructor Summary | |
|---|---|
OpponentModel(PreferenceProfileManager pPreferenceProfileManager,
BidHistory pBidHistory)
Constructor |
|
| Method Summary | |
|---|---|
void |
addBid(Bid pBid)
Adds the values of each issue of a bid to the preferenceprofilemanager |
double |
getUtility(Bid pBid)
Returns the utility of a bid, but instead of the normal utility it is based on the weights of each issues |
java.util.HashMap<Issue,java.lang.Double> |
getWeights()
Returns a hashmap with the weights for each of the issues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpponentModel(PreferenceProfileManager pPreferenceProfileManager,
BidHistory pBidHistory)
| Method Detail |
|---|
public void addBid(Bid pBid)
addBid in interface IOpponentModelpublic java.util.HashMap<Issue,java.lang.Double> getWeights()
public double getUtility(Bid pBid)
getUtility in interface IOpponentModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||